#!/usr/bin/env python3
import sys
sys.path.append('/home/gd/dispatch-system/backend')

from wsgi import create_app

app = create_app()

print('Registered routes:')
for rule in app.url_map.iter_rules():
    if 'permissions' in rule.rule or 'role-permissions' in rule.rule:
        print(f'{rule.rule} -> {rule.endpoint} [{rule.methods}]')